home *** CD-ROM | disk | FTP | other *** search
- Path: enterprise.sct.gu.edu.au!usenet
- From: Thea Cassel <tcassel>
- Newsgroups: comp.lang.c
- Subject: ATTENTION C EXPERTS!! Extern Declarations - NEED HELP!
- Date: 15 Jan 1996 04:29:21 GMT
- Organization: Griffith University, SCT
- Message-ID: <4dcl71$94s@enterprise.sct.gu.edu.au>
- NNTP-Posting-Host: sisyphus.cit.gu.edu.au
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.3 sun4c)
- X-URL: news:comp.lang.c
-
- I am having difficulty understanding the following code and every book I get on
- the subject does not explain the multiple MACROS that are in the definition.
-
- extern unsigned int _NEAR _CDECL _osversion;
-
- /* where _NEAR and _CDECL are macros defined as:*/
-
- #ifndef NO_KEYS
- #define _CDECL cdecl
- #define _NEAR near
- #else
- #define _CDECL
- #define _NEAR
- #endif
-
- /* There is only two places where cdecl and near are mentioned in the rest of
- the program - the following appears once in two seperate header files */
-
- #define _NEAR near
- #define _CDECL cdecl
-
- /* I am attempting to make this program ansi C compilable, and am stuck on this
- as I dont understand what the above code is doing. Any help would be greatly
- appreciated. Kind Regards, Thea Cassel tcassel@sisyphus.cit.gu.edu.au
- */
-
-